package cool.houge.pig.main;

import cool.houge.pig.PigProps;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.r2dbc.repository.config.EnableR2dbcRepositories;
import org.springframework.web.reactive.config.EnableWebFlux;

/**
 * 程序入口.
 *
 * @author KK (kzou227@qq.com)
 */
@EnableWebFlux
@EnableR2dbcRepositories(basePackages = "cool.houge.pig.repository")
@EnableConfigurationProperties(PigProps.class)
@SpringBootApplication(scanBasePackages = "cool.houge.pig")
public class PigMain {

  public static void main(String[] args) {
    SpringApplication.run(PigMain.class, args);
  }
}
